<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<html>
<head>

<script src="<%=path%>/static/js/jquery-1.6.1.min.js"
	type="text/javascript"></script>
<script src="<spring:url value="/static/js/jquery.easyui.min.js" />"
	type="text/javascript"></script>
<link rel="stylesheet" type="text/css"
	href="<%=path%>/static/css/themes/default/easyui.css">
<link href="<%=path%>/static/css/themes/icon.css" rel="stylesheet"
	type="text/css" />

<script type="text/javascript">
	
</script>
</head>

<body>
	<div>
		<form id="cpinfoForm" method="post"
			style="margin: 10; text-align: center;">
			<input type="hidden" name="id" id="id">

			<table>
				<tr>
					<td>Cp全称：</td>
					<td><input name="name" style="width: 200"
						validType="length[0,50]" class="easyui-validatebox"
						required="true"></td>
				</tr>

				<tr>
					<td>CP简称：</td>
					<td><input name="shortName" style="width: 200"
						validType="length[0,50]" class="easyui-validatebox"
						required="true"></td>
				</tr>
				<tr>
					<td>地址：</td>
					<td><input name="address" style="width: 200"
						validType="length[1,50]" class="easyui-validatebox"
						required="true"></td>
				</tr>

				<tr>
					<td>接口人姓名：</td>
					<td><input name="personName" style="width: 200"
						validType="length[1,50]" class="easyui-validatebox"
						required="true"></td>
				</tr>
				<tr>
					<td>电话号码：</td>
					<td><input name="tel" style="width: 200"
						validType="length[1,30]" class="easyui-validatebox"
						required="true"></td>
				</tr>
				<tr>
					<td>电子邮箱：</td>
					<td><input name="mail" style="width: 200"
						validType="email" class="easyui-validatebox"
						required="true"></td>
				</tr>

				<tr>
					<td>CPTYPE：</td>
					<td>
					<select id="idCpType" class="easyui-combobox,easyui-validatebox" name="cpType" style="width:160px;"   panelHeight="auto"
						required="true" 
						validType="selectValueRequired['#idCpType']" >
								<option value="1">自有CP</option>
								<option value="2">第三方CP</option>
								</select>
					</td>
				</tr>
				<tr>
					<td>&nbsp;</td>
					<td><a href="#" id="btn-back"
						onclick="$('#MyPopWindow').window('close');"
						class="easyui-linkbutton" iconCls="icon-back">返回</a> <a href="#"
						id="btn-add" onclick="saveOrUpdate()" class="easyui-linkbutton"
						iconCls="icon-save">保存</a></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
